package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    void save(Employee employee);


    void update(Employee employee);

    Employee get(Long id);

    List<Employee>listAll();

    PageInfo<Employee> query(QueryObject qo);


    Employee login(String username, String password);

    Workbook exportXls();

    void importXls(MultipartFile file)throws Exception;


    Employee selectByName(String username);
}
